import { App } from 'vue';
import { withInstall } from '@ibiz-template/vue3-util';
import { registerPanelItemProvider } from '@ibiz-template/runtime';
import { OdooChatProvider } from './odoo-chat.provider';
import { OdooChat } from './odoo-chat';

export const IBizOdooChat = withInstall(OdooChat, function (v: App) {
  v.component(OdooChat.name!, OdooChat);
  registerPanelItemProvider('CUSTOM_ODOO_CHAT', () => new OdooChatProvider());
});
